package com.hhf.feiojcodesandbox.config;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.core.DefaultDockerClientConfig;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author hhf
 * @Date 2024/10/31
 * @Description
 */
@Configuration
public class DockerConfig {


    @Bean
    public DockerClient dockerClient(){

        //创建Docker客户端
        return DockerClientBuilder.getInstance().build();
    }
}
